package com.alpha.eceasy.mall.service;

import com.alpha.eceasy.extension.BaseService;
import com.alpha.eceasy.mall.api.dto.MallCommoditySpecificationDTO;
import com.alpha.eceasy.mall.api.entity.MallCommoditySpecification;
import com.alpha.eceasy.mall.api.vo.MallCommoditySpecificationVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.io.Serializable;

public interface MallCommoditySpecificationService extends BaseService<MallCommoditySpecification> {
    IPage<MallCommoditySpecificationVO> getPage(Page<MallCommoditySpecification> page, MallCommoditySpecification entity);

    MallCommoditySpecificationVO getVOByGuid(Serializable guid);

    MallCommoditySpecificationVO getCommoditySpecificationVO(MallCommoditySpecification commoditySpecification);

    boolean saveAndCreateCommodity(MallCommoditySpecificationDTO dto);

}
